#ifndef MSGEDITAREA_H
#define MSGEDITAREA_H

#include <QWidget>
#include <QPushButton>
#include <QPlainTextEdit>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QScrollBar>
#include "historymessagewidget.h"

class MsgEditArea : public QWidget
{
    Q_OBJECT
public:
    explicit MsgEditArea(QWidget *parent = nullptr);

    void initSignalSlot();
    void sendTextMessage();
    void addSelfMessage(model::MessageType msgType, const QByteArray &content, const QString &extraInfo);
    void addOtherMessage(const model::MessageInfo &message);
private:
    QPushButton *_sendImageBtn;
    QPushButton *_sendFileBtn;
    QPushButton *_sendSpeechBtn;
    QPushButton *_showHistoryBtn;
    QPlainTextEdit *_textEdit;
    QPushButton *_sendTextBtn;

signals:
};

#endif // MSGEDITAREA_H
